package com.sunxu.exercise4;

/**
 * ${DESCRIPTION}
 *
 * @author Sun
 * @create 2017-08-01-21:48
 */
public class MyThread extends Thread {
    private int count = 5;

    public MyThread(String name) {
        this.setName(name);
    }

    @Override
    public void run() {
        super.run();
//        while (count > 0) {
            count--;
            System.out.println("由" + this.currentThread().getName() + "计算,count= " + count);
//        }
    }
}
